<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" disabled data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_id" data-rule="required" disabled data-source="shop_apply/index" data-field="company_name" data-primary-key="admin_id" class="form-control selectpage" name="row[sell_id]" type="text" value="{$row.sell_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" data-rule="required" disabled class="form-control" name="row[remarks]" type="text" value="{$row.remarks|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-coupon_id" data-rule="required" disabled data-source="coupon/index" class="form-control selectpage" name="row[coupon_id]" type="text" value="{$row.coupon_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_price" data-rule="required" disabled class="form-control" step="0.01" name="row[discount_price]" type="number" value="{$row.discount_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_sn" data-rule="required" disabled class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_price" data-rule="required" disabled class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_price" data-rule="required" disabled class="form-control" step="0.01" name="row[order_price]" type="number" value="{$row.order_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight" data-rule="required" disabled class="form-control" step="0.01" name="row[freight]" type="number" value="{$row.freight|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paytime" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[paytime]" type="text" value="{:$row.paytime?datetime($row.paytime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sendtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sendtime" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sendtime]" type="text" value="{:$row.sendtime?datetime($row.sendtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receipttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receipttime" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receipttime]" type="text" value="{:$row.receipttime?datetime($row.receipttime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Completetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-completetime" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[completetime]" type="text" value="{:$row.completetime?datetime($row.completetime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Canceltime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-canceltime" data-rule="required"disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[canceltime]" type="text" value="{:$row.canceltime?datetime($row.canceltime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mode')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-mode" class="form-control selectpicker" disabled name="row[mode]">
                {foreach name="modeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.mode"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <th style="text-align: center;vertical-align: middle;" colspan="13">
                <h3 style="color: red;">商品信息</h3>
            </th>
        </tr>
        </thead>
        <tr class="goods-title">
            <th>商品ID</th>
            <th>商品图片</th>
            <th>商品名称</th>
            <th>规格名称</th>
            <th>单价</th>
            <th>数量</th>
        </tr>
        <tbody>
        {foreach name="orderGoods" item="vo"}
        <tr>
            <td style="text-align: center; vertical-align: middle;">{$vo.goods_id}</td>
            <td style="text-align: center; vertical-align: middle; "><a href="javascript:"><img class="img-sm img-center" src="{$vo.images}"></a></td>
            <td style="text-align: center; vertical-align: middle;">{$vo.goods_name}</td>
            <td style="text-align: center; vertical-align: middle;">{$vo.sku_name}</td>
            <td style="text-align: center; vertical-align: middle;">{$vo.goods_price}</td>
            <td style="text-align: center; vertical-align: middle;"> {$vo.goods_num}</td>
        </tr>
        {/foreach}

        </tbody>
    </table>
    <thead>
    <tr>
        <th style="text-align: center;vertical-align: middle;" colspan="13">
            <h3 style="color: red;">收货信息</h3>
        </th>
    </tr>
    </thead>
    <table class="table table-bordered ">
        <thead >
        <th style="text-align: center;">
            收货人：{$row.addressInfo.name}
        </th>
        <th style="text-align: center;">
            联系方式：{$row.addressInfo.phone}
        </th>
        <th style="text-align: center;">
            地址：{$row.addressInfo.province}{$row.addressInfo.city}{$row.addressInfo.area}
        </th>
        <th style="text-align: center;">
            详细地址：{$row.addressInfo.address}
        </th>
        </thead>
    </table>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择快递')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-logistic_code" data-rule="required" {$row.status=='2'?'':'disabled'}  class="form-control selectpicker" name="row[logistic_code]">
                {foreach name="logistic" item="vo"}
                <option value="{$vo.name}" {in name="vo.name" value="$row.logistic_code"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('快递号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-logistic_num"  {$row.status=='2'?'':'disabled'} class="form-control"  name="row[logistic_num]" type="text" value="{$row.logistic_num|htmlentities}">
        </div>
    </div>
    {if $row.status==2}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否发货')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <label ><input  name="row[status]" type="radio" value="3"  /> 是</label>
                <label><input  name="row[status]" type="radio" value="2"  checked/> 不是</label>
            </div>

        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('当前订单状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                {if $key==$row.status}
                <input id="c-status"  class="form-control"  disabled type="text" value="{$vo|htmlentities}">
                {/if}
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('运费状态')}:</label>
        <div class="col-xs-12 col-sm-8">


            <select  id="c-refund_freight" class="form-control selectpicker"  name="row[refund_freight]">
                {foreach name="refundFreightList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.refund_freight"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>

        </div>
    </div>
</form>
